<div class="menu" id="menu">
    <div class="layui-collapse" lay-accordion>
        {foreach $left as $key => $left_v}
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">{$left_v.title}</h2>
                <div class="layui-colla-content {if $key==0}layui-show{/if}">
                    <ul class="layui-nav layui-nav-tree" lay-filter="test">
                        {foreach $left_v['lists'] as $lists_v}
                            <li class="layui-nav-item"><a href="/admin/{$lists_v.controller}">{$lists_v.title}</a></li>
                        {/foreach}
                    </ul>
                </div>
            </div>
        {/foreach}
    </div>
</div>